package com.szosen.jkzj.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.szosen.jkzj.R;
import com.szosen.util.SharedpreferenceUtil;

public class YaowudatasMainActivity extends BaseActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_yaowudatasmain);
		super.setTitleContent("药物列表");
	}

	public void jumpToyaowulists(View view) {
		int id = view.getId();
		Intent intent = new Intent(context, YaowulistsActivity.class);
		switch (id) {
		case R.id.btn_hypertension:
			intent.putExtra("from", SharedpreferenceUtil.YAOWUDATAS_GXY);
			break;
		case R.id.btn_glycuresis:
			intent.putExtra("from", SharedpreferenceUtil.YAOWUDATAS_TNB);
			break;
		default:
			break;
		}
		startActivity(intent);
	}
}
